package com.thenie.utils;


public class FileNameUtils {

    public static String getExtensionName(String fileName){
        String[] strArray = fileName.split("\\.");
        int suffixIndex = strArray.length -1;
        String extensionName=strArray[suffixIndex];
        return extensionName;
    }
//    @Test
//public void getExtensionName(){
//    String fileName ="ab.c.jsg";
//    String[] strArray = fileName.split("\\.");
//    int suffixIndex = strArray.length -1;
//
//    System.out.println(UUID.randomUUID().toString().replace("-", "")+"."+strArray[suffixIndex]);
//}
}
